package io.aicn.lowcode.service;

import io.aicn.lowcode.dto.ProductCreate;
import io.aicn.lowcode.dto.ProductUpdate;
import io.aicn.lowcode.entity.Product;

import java.math.BigDecimal;
import java.util.List;

public interface IProductService {
    List<Product> searchProducts(String name, String code, String category, BigDecimal minPrice, BigDecimal maxPrice, Integer minStock, Integer maxStock, String status);
    Product createProduct(ProductCreate productCreate);
    Product updateProduct(Long id, ProductUpdate productUpdate);
    boolean deleteProduct(Long id);
    List<Product> getAllProducts();
    Product getById(Long id);
}